package com.aboo.file2;

import java.util.concurrent.Callable;

public class ReadCallable implements Callable<Boolean> {

    private ReadKit readKit;

    public ReadCallable(ReadKit readKit) {
        this.readKit = readKit;
    }

    @Override
    public Boolean call() throws Exception {
        try {
            while (readKit.read()) ;
        } catch (Exception e) {
            e.printStackTrace();
            return false;
        }

        return true;
    }

}
